<!-- 头部导航栏 -->
<template>
  <div class="nav-bar">
    <div class="nav-left"><slot name="left"></slot></div>
    <div class="nav-center"><slot name="center"></slot></div>
    <div class="nav-right"><slot name="right"></slot></div>
  </div>
</template>

<script>
export default {
    name:"NarBar"
}
</script>

<style scoped>
.nav-bar{
  position: relative;
  display: flex;
  height: 44px;
  line-height: 44px;
  margin: 10px 10px;
}
.nav-left,.nav-right{
  width: 80px;
}
.nav-center{
  flex: 1;
}
</style>